<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */

$db['order_apply_sale'] = array(
    'columns' =>
        array(
            'apply_sale_id' =>
                array(
                    'type' => 'number',
                    'required' => true,
                    'pkey' => true,
                    'extra' => 'auto_increment',
                    'label' => app::get('b2c')->_('优惠申请ID'),
                    'width' => 110,
                    'editable' => false,
                    'in_list' => false,
                    'default_in_list' => true,
                ),
            'order_id' =>
                array (
                    'type' => 'table:orders',
                    'required' => true,
                    'default' => 0,
                    'editable' => false,
                    'searchtype' => 'has',
                    'label' => app::get('b2c')->_('订单号'),
                    'filterdefault' => true,
                    'in_list' => true,
                    'default_in_list' => true,
                    'comment' => app::get('b2c')->_('订单ID'),
                    'order'=>'1',
                ),
	        'zhekouinfo' =>
		        array (
			        'type' => 'longtext',
			        'label' => app::get('b2c')->_('申请说明'),
			        'editable' => false,
			        'in_list' => true,
			        'default_in_list' => true,
			        'comment' => app::get('b2c')->_('申请说明'),
		        ),
            'shenhe_status' =>
                array (
                    'type' =>
                        array (
                            0 => app::get('b2c')->_('未审核'),
                            1 => app::get('b2c')->_('已通过'),
                            2 => app::get('b2c')->_('已拒绝'),
                        ),
                    'default' => '0',
                    'required' => true,
                    'label' => app::get('b2c')->_('审核状态'),
                    'width' => 75,
                    'editable' => false,
                    'filtertype' => 'yes',
                    'filterdefault' => true,
                    'in_list' => true,
                    'default_in_list' => true,
                ),
	        'pay_status' =>
                array (
                    'type' =>
                        array (
                            0 => app::get('b2c')->_('未支付'),
                            1 => app::get('b2c')->_('已支付'),
                        ),
                    'default' => '0',
	                'label' => app::get('b2c')->_('支付状态'),
	                'hidden' => true,
                ),
            'add_time' =>
                array(
                    'type' => 'time',
                    'width' => 110,
                    'editable' => false,
                    'in_list' => true,
                    'default_in_list' => true,
                    'order' => '7',
                    'label' => app::get('aftersales')->_('申请时间'),
                    'comment' => app::get('aftersales')->_('申请时间'),
                ),
            'discount' =>
                array (
                    'type' => 'money',
                    'default' => '0',
                    'required' => true,
                    'editable' => false,
	                'in_list' => true,
	                'default_in_list' => true,
                    'comment' => app::get('b2c')->_('申请金额'),
                    'label' => app::get('b2c')->_('申请金额'),
                ),
            'last_modify' =>
                array (
                    'type' => 'last_modify',
                    'label' => app::get('b2c')->_('更新时间'),
                    'width' => 110,
                    'editable' => false,
                    'hidden' => true,
                    'orderby' => true,
                ),
        ),
    'index' =>
        array(
            'ind_order_id' =>
                array(
                    'columns' =>
                        array(
                            0 => 'order_id',
                        ),
                ),
            'ind_last_modify' =>
                array(
                    'columns' =>
                        array(
                            0 => 'last_modify',
                        ),
                ),
        ),
    'version' => '$Rev: 41329 $',
    'comment' => app::get('b2c')->_('订单优惠申请表'),
);
